using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._WorkflowManagerTools._Jobs
{
    /// <summary>
    /// <para>Get Job Version</para>
    /// <para>Gets the job version as an enterprise geodatabase connection file to process data in a version.</para>
    /// <para>获取作业版本作为企业级地理数据库连接文件，以处理版本中的数据。</para>
    /// </summary>    
    [DisplayName("Get Job Version")]
    public class GetJobVersion : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GetJobVersion()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_Input_JobID">
        /// <para>Input Job ID</para>
        /// <para>The ID for the job whose version is to be retrieved.</para>
        /// <para>要检索其版本的作业的 ID。</para>
        /// </param>
        public GetJobVersion(object _Input_JobID)
        {
            this._Input_JobID = _Input_JobID;
        }
        public override string ToolboxName => "Workflow Manager Tools";

        public override string ToolName => "Get Job Version";

        public override string CallName => "wmx.GetJobVersion";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_Input_JobID, _Input_DatabasePath, _Output_JobVersion, _Output_JobVersionExists];

        /// <summary>
        /// <para>Input Job ID</para>
        /// <para>The ID for the job whose version is to be retrieved.</para>
        /// <para>要检索其版本的作业的 ID。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Job ID")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Input_JobID { get; set; }


        /// <summary>
        /// <para>Input Database Path</para>
        /// <para>The Workflow Manager (Classic) database connection file that contains the job information. If no connection file is specified, the current default Workflow Manager (Classic) database in the project is used.</para>
        /// <para>包含作业信息的 Workflow Manager （Classic） 数据库连接文件。如果未指定连接文件，则使用工程中的当前默认 Workflow Manager （Classic） 数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Database Path")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _Input_DatabasePath { get; set; } = null;


        /// <summary>
        /// <para>Job Version</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Job Version")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _Output_JobVersion { get; set; }


        /// <summary>
        /// <para>Job Version Exists</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Job Version Exists")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _Output_JobVersionExists { get; set; }


        public GetJobVersion SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}